package com.ctcc.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
@AllArgsConstructor
public class TokenBody {


    /**
     * data : {"accessToken":"vDwuKPzg5aJdkkBgPEvdp2mvXNOUOk0E","expireIn":7200,"refreshToken":"I8LizwKle1jQkPfHP7w4GLyFDt592PmF"}
     * error : null
     * errorCode : 0
     * success : true
     */

    private DataBean data;
    private Object error;
    @JsonProperty(value = "errorCode")
    private int errorCode;
    private boolean success;

    @NoArgsConstructor
    @Data
    public static class DataBean {
        /**
         * accessToken : vDwuKPzg5aJdkkBgPEvdp2mvXNOUOk0E
         * expireIn : 7200
         * refreshToken : I8LizwKle1jQkPfHP7w4GLyFDt592PmF
         */

        @JsonProperty(value = "accessToken")
        private String accessToken;
        @JsonProperty(value = "expireIn")
        private int expireIn;
        @JsonProperty(value = "refreshToken")
        private String refreshToken;
    }
}